package com.usian.controller;

import com.usian.feign.ItemServiceFeign;
import com.usian.pojo.TbItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("frontend")
public class ItemController {
    @Autowired
    private ItemServiceFeign itemServiceFeign;

    @RequestMapping("item/selectItemInfo")
    public TbItem selectItemInfo(Long itemId) {
        return itemServiceFeign.selectItemInfo(itemId);
    }
}
